package Tests;
import static org.junit.Assert.*;
import junit.framework.Assert;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import server.DB;
import server.ServerWindow;


public class TestUserLoginPassword {

	DB db;
	String Except_Str=null;
	String Result_Str=null;
	String[] arr;
	ServerWindow sv;
	
	@Before
	public void setUp() throws Exception {
		sv.arr[4]="localhost";
		sv.arr[1]="root";
		sv.arr[2]="Braude";
		String[] arr = new String[5];
		arr[0]="login";
		arr[1]="employeedb";
		arr[2]="zach ashkenazi";
		arr[3]="9866";
		db=new DB(arr);
	}

	@Test
	public void TestLoginPassword() {
		
		Except_Str="wrong password";
		Result_Str=db.login();
		
		Assert.assertEquals(Except_Str,Result_Str);
	}

	


}
